package com.muyu.danmo.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.muyu.danmo.mapper.DanmoCountyMapper;
import com.muyu.danmo.domain.DanmoCounty;
import com.muyu.danmo.service.IDanmoCountyService;

/**
 * 区县信息Service业务层处理
 * 
 * @author yangle
 * @date 2024-09-20
 */
@Service
public class DanmoCountyServiceImpl implements IDanmoCountyService 
{
    @Autowired
    private DanmoCountyMapper danmoCountyMapper;

    /**
     * 查询区县信息
     * 
     * @param id 区县信息主键
     * @return 区县信息
     */
    @Override
    public DanmoCounty selectDanmoCountyById(Long id)
    {
        return danmoCountyMapper.selectDanmoCountyById(id);
    }

    /**
     * 查询区县信息列表
     * 
     * @param danmoCounty 区县信息
     * @return 区县信息
     */
    @Override
    public List<DanmoCounty> selectDanmoCountyList(DanmoCounty danmoCounty)
    {
        return danmoCountyMapper.selectDanmoCountyList(danmoCounty);
    }

    /**
     * 新增区县信息
     * 
     * @param danmoCounty 区县信息
     * @return 结果
     */
    @Override
    public int insertDanmoCounty(DanmoCounty danmoCounty)
    {
        return danmoCountyMapper.insertDanmoCounty(danmoCounty);
    }

    /**
     * 修改区县信息
     * 
     * @param danmoCounty 区县信息
     * @return 结果
     */
    @Override
    public int updateDanmoCounty(DanmoCounty danmoCounty)
    {
        return danmoCountyMapper.updateDanmoCounty(danmoCounty);
    }

    /**
     * 批量删除区县信息
     * 
     * @param ids 需要删除的区县信息主键
     * @return 结果
     */
    @Override
    public int deleteDanmoCountyByIds(Long[] ids)
    {
        return danmoCountyMapper.deleteDanmoCountyByIds(ids);
    }

    /**
     * 删除区县信息信息
     * 
     * @param id 区县信息主键
     * @return 结果
     */
    @Override
    public int deleteDanmoCountyById(Long id)
    {
        return danmoCountyMapper.deleteDanmoCountyById(id);
    }
}
